<?php
require_once BACKGROUND_PC_COMMON_ACTION_DIR . '/default.php';

class background_pc_ajax_common_action extends background_pc_default_common_action
{   
    protected function check_login()
    {
        if($this->_if_require_login){
            $result = array('status' => 0, 'message' => '', 'data' => array());
            
            if(empty($_SESSION['admin_user_name'])){                
                $result['status']  = -401;
                $result['message'] = '未登录';
                	
                $this->set_view_status($result['status']);
                $this->set_view_message($result['message']);
                
                echo json_encode($result);
            }
        }
    }
    
    
    
    /**
     * ajax【一般不用】渲染布局、合成整个页面，并输出
     */
    protected function _render()
    {
        
    }
}